package cn.edu.nuc.ssm.service;

import cn.edu.nuc.ssm.entity.Category;

import java.util.List;

/**
 * Created by Administrator on 2017/5/2.
 */
public interface CategoryService {

    public Category findByid(Integer id);

    public int updateSelective(Category category);

    public int deleteCategoryAndRefece(Integer uid,Integer ctid);

    public List<Category> listCategory();

    public int updatename(Integer id,String name);

    public int insert(Category category);

    public List<Category> findByName(String name);

    public int delete(Integer id);
}
